<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/4/20
  Time: 17:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type = "text/javascript" src = "js/jquery.min.js"></script>
    <script type = "text/javascript">
        $(function(){
            $.get("http://localhost:8080${pageContext.request.contextPath}/findGoodsType",null,function(data){
                //alert(data);
                //绑定
                for(var n in data){
                    $("#name").append("<option value='"+n+"'>"+data[n]+"</option>");
                }
        });
        })
    </script>
</head>
<body>
      <h3>商品类型</h3>
      <form action = "" method="post" enctype="application/x-www-form-urlencoded">
          <select id = "name" name = name >
              <option>----请选择----</option>
          </select>
      </form>
</body>
</html>
